From 31dd292736dc2ebf461d61f29b984fa84550fd15 Mon Sep 17 00:00:00 2001 From: Daniel Sabo Date: Thu, 7 Feb 2013 11:24:12 -0800 Subject: [PATCH] Add --disable-docs option to configure --- Makefile.am | 7 +++++-- configure.ac | 7 +++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 19df326..7008414 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,8 +4,11 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} SUBDIRS = \ babl \ extensions \ - tests \ - docs + tests + +if ENABLE_DOCS +SUBDIRS+= docs +endif pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = babl.pc diff --git a/configure.ac b/configure.ac index b0697ab..ce5a872 100644 --- a/configure.ac +++ b/configure.ac @@ -172,6 +172,13 @@ AM_CONDITIONAL(HAVE_RSVG, test "x$RSVG" != "xno") AC_PATH_PROG(W3M, w3m, no) AM_CONDITIONAL(HAVE_W3M, test "x$W3M" != "xno") +dnl disable docs generation. +AC_ARG_ENABLE([docs], + [ --disable-docs disable docs generation (default=no)],, + enable_docs="yes") + +AM_CONDITIONAL(ENABLE_DOCS, test "x$enable_docs" = "xyes") + ########################### # Check target architecture ########################### -- 2.30.2